/* Custom styles for ASCII Art Generator */

/* ASCII preview card (thumbnails/listings) */
.ascii-preview {
  font-family: monospace;
  background: #000;
  color: #fff;
  white-space: pre;
  overflow-x: auto;
  font-size: 0.75rem;
  max-height: 200px;
  overflow-y: hidden;
  border-radius: 0.25rem;
  padding: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

/* ASCII fullscreen / detail view */
.ascii-fullscreen {
  font-family: monospace;
  background: #000;
  color: #fff;
  white-space: pre;
  overflow-x: auto;
  border-radius: 0.25rem;
  padding: 1rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  min-height: 200px;
}

/* Card hover effect */
.card {
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

/* Navbar brand */
.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Generation loader overlay */
#loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  font-size: 1.25rem;
}

#loading-overlay.active {
  display: flex;
}

/* Textarea for description */
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Badge for creation date */
.badge-date {
  font-size: 0.7rem;
  font-weight: 400;
}

/* Delete confirmation button spacing */
.btn-danger {
  margin-left: 0.25rem;
}

/* Responsive font scaling for ascii-fullscreen */
@media (max-width: 576px) {
  .ascii-fullscreen {
    font-size: 0.6rem;
  }

  .ascii-preview {
    font-size: 0.55rem;
  }
}

@media (min-width: 577px) and (max-width: 992px) {
  .ascii-fullscreen {
    font-size: 0.7rem;
  }

  .ascii-preview {
    font-size: 0.65rem;
  }
}

@media (min-width: 993px) {
  .ascii-fullscreen {
    font-size: 0.85rem;
  }
}

/* Scrollbar styling for dark ASCII blocks */
.ascii-preview::-webkit-scrollbar,
.ascii-fullscreen::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.ascii-preview::-webkit-scrollbar-track,
.ascii-fullscreen::-webkit-scrollbar-track {
  background: #111;
}

.ascii-preview::-webkit-scrollbar-thumb,
.ascii-fullscreen::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.ascii-preview::-webkit-scrollbar-thumb:hover,
.ascii-fullscreen::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Page title spacing */
h1.display-6 {
  margin-bottom: 1.5rem;
}

/* Empty state message */
.empty-state {
  text-align: center;
  color: #6c757d;
  padding: 3rem 1rem;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.4;
}
